package cn.topcodes.tcsf.admin.service.licence;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * @author Unicorn
 * @date 2017/5/9
 */
@Data
public class Licence implements Serializable {

    /*到达指定时间节点即过期*/
    public static final String TYPE_TIME_POINT = "TIME_POINT";

    /*使用时长到达即过期*/
    public static final String TYPE_TIME_LENGTH = "TIME_LENGTH";

    /*授权到期类型*/
    private String type;

    /*到期时间，TIME_POINT有效*/
    private Date expiredTime;

    /*有效时长，TIME_LENGTH有效*/
    private long effectiveTimeLength;

    /*是否显示试用信息*/
    private Boolean showTrial;

    /*网卡地址*/
    private String mac;

    /*硬盘序列号*/
    private String diskSn;

    /*cpu序列号*/
    private String cpuSn;

    /*是否绑定网卡*/
    private Boolean bindMac;

    /*是否绑定硬盘*/
    private Boolean bindDisk;

    /*是否绑定CPU*/
    private Boolean bindCpu;

    /*功能是否可用*/
    private Map<String,Boolean> functions;
}
